home *** CD-ROM | disk | FTP | other *** search
/ Interactive Media Design Review 1999 / Interactive Media Design Review 1999.iso / pc / allfiles / Itch / work_info / WImage.dcr / 00016_Box Parent.ls < prev    next >
Encoding:
Text File  |  1999-03-07  |  392 b   |  14 lines

  1. property sp, boxHieght, limitRect
  2.  
  3. on new me, asp, aPos
  4.   me.sp = asp + 1
  5.   puppetSprite(me.sp, 1)
  6.   boxHieght = the bottom of sprite me.sp - the top of sprite me.sp
  7.   tempH = aPos.locH - the width of sprite asp + 6
  8.   tempV = aPos.locV - (boxHieght / 2) + 6
  9.   set the loc of sprite the sp of me to point(tempH, tempV)
  10.   updateStage()
  11.   me.limitRect = the rect of sprite me.sp
  12.   return me
  13. end
  14.